package com.zhuiyun.project.util;

import org.springframework.cglib.beans.BeanCopier;

/**
 * @auther zcy
 * @data 2020/6/3 13:07
 */
public class BeanUtils {

    public static void copy(Object source, Object target) {
        if (ObjectUtils.isNotEmpty(source)) {
            org.springframework.beans.BeanUtils.copyProperties(source,target);
           // BeanCopier copier = BeanCopier.create(source.getClass(), target.getClass(), false);
            //copier.copy(source, target, null);
        }
    }
}
